﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Transactions;
using System.Data.Common;

namespace Core
{
    public partial class Aspnet_Membership
    {
        public static void Delete(Guid userId, DataAccessDataContext db)
        {
            IQueryable<Aspnet_Membership> memberships = from m in db.Aspnet_Memberships
                                                        where m.UserId == userId
                                                        select m;
            db.Aspnet_Memberships.DeleteAllOnSubmit(memberships);
        }
    }
}
